package com.doudou.pay.helper.entities;

import java.io.Serializable;
import java.util.Date;

public class PayOrder implements Serializable {
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String payId;
	private String thirdPartyOrderId;
	private String authToken;
	private String userId;
	private String type;
	private Double money;
	private String remark;
	private String status;
	private Date payTime;
	private String sessionKey;
	private Date payNotifyTime;
	private String fundsAccount;
	private Integer payType;
	private String rechargeAccount;
	private String platformOrderStatus;
	private String platformOrder;
	private String fundsAccountName;
	private int clientType;
	private String qrcode;

	public PayOrder() {
	}

	public PayOrder(UserPay userPay) {
		this.payId = userPay.getPayId();
		this.authToken = userPay.getAuthToken();
		this.type = userPay.getType();
		this.money = userPay.getMoney();
		this.remark = userPay.getRemark();
		this.payTime = new Date();
		this.sessionKey = userPay.getSessionKey();
		this.thirdPartyOrderId = userPay.getThirdPartyOrderId();
		this.clientType = userPay.getClientType();
		this.qrcode = userPay.getQrcode();
	}

	public String getThirdPartyOrderId() {
		return thirdPartyOrderId;
	}

	public void setThirdPartyOrderId(String thirdPartyOrderId) {
		this.thirdPartyOrderId = thirdPartyOrderId;
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPayId() {
		return payId;
	}

	public void setPayId(String payId) {
		this.payId = payId;
	}

	public String getAuthToken() {
		return authToken;
	}

	public void setAuthToken(String authToken) {
		this.authToken = authToken;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Date getPayNotifyTime() {
		return payNotifyTime;
	}

	public void setPayNotifyTime(Date payNotifyTime) {
		this.payNotifyTime = payNotifyTime;
	}

	public String getFundsAccount() {
		return fundsAccount;
	}

	public void setFundsAccount(String fundsAccount) {
		this.fundsAccount = fundsAccount;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public String getRechargeAccount() {
		return rechargeAccount;
	}

	public void setRechargeAccount(String rechargeAccount) {
		this.rechargeAccount = rechargeAccount;
	}

	public String getPlatformOrderStatus() {
		return platformOrderStatus;
	}

	public void setPlatformOrderStatus(String platformOrderStatus) {
		this.platformOrderStatus = platformOrderStatus;
	}

	public String getPlatformOrder() {
		return platformOrder;
	}

	public void setPlatformOrder(String platformOrder) {
		this.platformOrder = platformOrder;
	}

	public String getFundsAccountName() {
		return fundsAccountName;
	}

	public void setFundsAccountName(String fundsAccountName) {
		this.fundsAccountName = fundsAccountName;
	}

	public int getClientType() {
		return clientType;
	}

	public void setClientType(int clientType) {
		this.clientType = clientType;
	}

	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	@Override
	public String toString() {
		return "PayOrder [id=" + id + ", payId=" + payId + ", authToken="
				+ authToken + ", userId=" + userId + ", type=" + type
				+ ", money=" + money + ", remark=" + remark + ", status="
				+ status + ", payTime=" + payTime + "]";
	}

}
